package com.goods.common.model.business;

import com.goods.common.annotation.CreateTime;
import com.goods.common.annotation.UpdateTime;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "biz_product")
public class Product {
    @Id
    @ExcelField(value = "编号", width = 50)
    private Long id;

    @ExcelField(value = "分类代号", width = 100)
    private String pNum;

    @ExcelField(value = "分类名称", width = 100)
    private String name;

    private String model;

    private String unit;

    @ExcelField(value = "备注")
    private String remark;

    @ExcelField(value = "排序")
    private Integer sort;

    @CreateTime
    @ExcelField(value = "创建时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
    private Date createTime;

    @UpdateTime
    @ExcelField(value = "修改时间", dateFormat = "yyyy年MM月dd日 HH:mm:ss", width = 180)
    private Date modifiedTime;

    private String imageUrl;

    private Long[] categoryKeys;

    private Long oneCategoryId;

    private Long twoCategoryId;

    private Long threeCategoryId;

    private Integer status;//是否已经进入回收站:1:逻辑删除,0:正常数据,2:添加待审核

}
